defaults
( service in module ng
)
Runtime equivalent of the $httpProvider.defaults
property. Allows configuration of
default headers, withCredentials as well as request and response transformations.
See "Setting HTTP Headers" and "Transforming Requests and Responses" sections above.